<?php
/**
 * 用于关闭站点使用，请不要删除
 */
 
class DoitController extends CController {
    
    public function actionIndex() {
        $config = Yii::app()->params['frontend'];
        if (!$config['site_closing'])
            return $this->redirect(array('site/index'));
        
        $this->renderPartial('index', array('config' => $config), false, true);
    }
}
